package net.toocruel.iqismart.entity.core;

import net.toocruel.iqismart.entity.base.BaseEntity;
import net.toocruel.iqismart.entity.constants.ReviewStatus;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * @Description
 * @Auther sty
 * @createTime 2018/5/8 上午11:35
 */
@Entity
public class Good extends BaseEntity {
    private static final long serialVersionUID = 5723180312924985625L;
    private String logo;
    private String name;
    private String description;
    private int coin;
    private int remnant;
    private byte postType;
    @Enumerated(EnumType.ORDINAL)
    private ReviewStatus status;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getCoin() {
        return coin;
    }

    public void setCoin(int coin) {
        this.coin = coin;
    }

    public int getRemnant() {
        return remnant;
    }

    public void setRemnant(int remnant) {
        this.remnant = remnant;
    }

    public byte getPostType() {
        return postType;
    }

    public void setPostType(byte postType) {
        this.postType = postType;
    }

    public ReviewStatus getStatus() {
        return status;
    }

    public void setStatus(ReviewStatus status) {
        this.status = status;
    }
}
